/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import beans.*;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;

import objects.Category;
import objects.Forum;
import objects.Post;
import objects.User;

/**
 *
 * @author Tommy
 */
@Named
@ApplicationScoped
public class dao {
    static List<User> users;
    static List<Category> categories;
    private List<objects.Thread> threads;
    private List<Post> posts;
    private List<Forum> forums;
    
    static User newUser;    
    
    public static void addUser(User user)
    {
        users.add(user);
    }
    
    public List<Forum> getForums(){
        return forums;
    }
    
    public List<Category> getCategories(){
        return categories;
    }
    
    public static List<User> getUsers(){
        return users;
    }
    
    public static void addTest(){
        Category c1 = new Category("First", "Test");
        categories.add(c1);
    }
    
    //public List<objects.Thread> getThreads



}
